<?php
//连接数据库
require_once 'shuj.php';

//获取参数
$id = $_SESSION['id'];
$name = $_GET["name"];
$content = $_GET["content"];
$time = date("Y-m-d H:i:s",time());
$color = $_GET["color"];
$password = $_GET["password"];

var_dump($name);
var_dump($content);


//编辑。更改语句
$sql = "UPDATE `wish` SET `content` = '$content', `password` = '$password' WHERE `wish`.`id` = '$id'";

//执行语句
$conn->query($sql);

//跳回到首页
header("Location:index.php");
?>